package com.apps.MobileSms.Aliyun.service;

import com.app.sannotation.constraints.Mobile;
import com.app.sannotation.constraints.NoNull;
import com.app.sannotation.constraints.StrLen;
import com.app.sworld.sPlugs;
import com.app.thirdparty.sms.aspect.SendSms;
import com.app.thirdparty.sms.enums.SmsErrorCode;
import com.app.thirdparty.sms.enums.SmsTemplate;
import com.app.thirdparty.sms.model.vo.SmsTemplateVO;
import com.apps.MobileSms.Aliyun.aspect.SendSms;
import com.apps.MobileSms.Aliyun.enums.SmsErrorCode;
import com.apps.MobileSms.Aliyun.enums.SmsTemplate;
import com.apps.sannotation.constraints.Mobile;
import com.apps.sannotation.constraints.StrLen;
import com.apps.sworld.sPlugs;

import java.util.Map;

/**
 * 短信SMS服务接口
 */
public interface ISmsService extends sPlugs {

    /**
     * 发送短信验证码,一个手机号码60秒内只能调用一次
     * @param mobile
     */
    void sendValidCodeSms(@Mobile String mobile);

    /**
     * 验证码手机验证码
     * @param mobile
     * @param code
     * @return
     */
    void validMobileCode(@Mobile String mobile,@StrLen(min = 6,max = 6,errMsg = "验证码必须为6位")  String code);




}
